using System;
using System.Collections;

namespace Praedator.Framework.Core.Utils
{
    public class Ensure
    {
        public static void ArgumentNotNullOrEmptyCollection(ICollection collection, string message)
        {
            if (collection == null || collection.Count == 0)
            {
                throw new ArgumentException(message);
            }
        }

        public static void ArgumentNotNull(object instance, string message)
        {
            if (instance == null)
            {
                throw new ArgumentException(message);
            }
        }
    }
}